home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Development Platforms / Apple II / DTS Apple II Sample Code / IR 2.0 / Source Code / Interfaces / E16.IR next >
Encoding:
Text File  |  1992-02-25  |  3.6 KB  |  120 lines  |  [TEXT/MPS ]

  1. *******************************************************************************
  2. *
  3. * File:  E16.IR
  4. *
  5. * Equates for IR, the Finder Extension version
  6. *
  7. * Copyright 1991, Apple Computer, Inc.  All rights reserved.
  8. * Modification History:
  9. *
  10. * Version    Author
  11. *
  12. * 2.0a1    Matt Deatherage
  13. * First version of this file.
  14. *
  15. * 2.0a2    Matt Deatherage
  16. * NDA equates changed and reworked.  MaxFEs deleted; it's not valid anymore.
  17. *
  18. * 2.0a3    Matt Deatherage
  19. * First code-review release; no equate changes.
  20. *
  21. * 2.0b1    Matt Deatherage
  22. * Added preferences file type and auxiliary type
  23. *
  24. * 2.0b3    Matt Deatherage
  25. * Fixed a comment or two to reflect reality.
  26. *
  27. * 2.0b4    Matt Deatherage
  28. * Added irDelayedStart for the convoluted mechanism added in 2.0b4.
  29. *
  30. * 2.0    Matt Deatherage
  31. * Changed all relative offsets (irErrorBase+x) to absolutes since these
  32. * can't change once this is released.
  33. *
  34. *******************************************************************************
  35.     
  36. ; requests we accept
  37.  
  38. ;finderSaysHello     equ $0100
  39. ;finderSaysGoodbye     equ $0101
  40. ;finderSaysBeforeOpen equ $0104
  41. ;finderSaysOpenFailed equ $0105
  42. ;finderSaysExtrasChosen equ $0108
  43. ;finderSaysKeyHit     equ $010A
  44. ;srqGoAway    equ $0003
  45.  
  46. ;irRequestBase    equ $C300
  47. askIRStartUp    equ $C300
  48. askIRAreYouThere    equ $C301
  49. askIRToInstall    equ $C302
  50. askIRGetPrefs    equ $C303
  51. askIRSetPrefs    equ $C304
  52. askIRDoPrefs    equ $C305
  53.  
  54.  
  55. ; flags for IR preferences (and to the askIRToInstall routine)
  56.  
  57. irDefaultPrefs    equ 0    ; default == all bits clear
  58.  
  59. irSpecialPrefs    equ 1<<0    ; 1 = these flags override IR preferences
  60.         ; 0 = use preferences from IR preferences file
  61.         
  62. irDoDiskPrefs    equ irSpecialPrefs    ; same bit used to indicate disk access sometimes
  63.  
  64. irNoDuplicates    equ 1<<1    ; 1 = duplicates not allowed; do something if so
  65.         ; 0 = duplicates OK
  66.         
  67. irKillDuplicates    equ 1<<2    ; 1 = kill duplicates -- error if you can't
  68.         ; 0 = try to kill duplicates -- no error if not
  69.         ; meaningless if irNoDuplicates is clear
  70.         
  71. irDontOpenNDAs    equ 1<<3    ; 1 = just install NDAs, don't open them
  72.         ; 0 = open NDAs and futz Apple Menu if Desk active
  73.         
  74. irKillFinderExts    equ 1<<4    ; 1 = kill this Finder extension on Finder quit
  75.         ; 0 = leave this extension around forever
  76.         
  77. irCopyExistNDAs    equ 1<<5    ; 1 = Install new ones like normal
  78.         ; 0 = Open existing NDAs instead of installing copies
  79.         ; (This only happens if irKillDuplicates is clear)
  80.         
  81. irWaitOpenFailed    equ 1<<6    ; 1 = Only open on OpenFailed for compatibility
  82.         ; 0 = Install files on FinderSaysBeforeOpen
  83.         
  84. irIgnoreProblems    equ 1<<7    ; 1 = Ignore problems and proceed as best you can
  85.         ; 0 = Alert user to problems if we can
  86.         
  87. ; IR error codes
  88.  
  89. irErrorMask    equ $FF00    ; AND with mask and compare to errorBase to see if
  90. irErrorBase    equ $C300    ; this is an IR error code.
  91.  
  92. irDuplicateExists    equ $C301    ; a duplicate exists with irNoDuplicates set
  93. irDuplicateWontDie    equ $C302    ; a duplicate exists and won't go away
  94. irNoFinder    equ $C303    ; you can't install Finder Extensions without Finder
  95. irGSOSNotAvail    equ $C304    ; IR can't do many things if GS/OS isn't available
  96. irNotIRFile    equ $C305    ; not a file IR can install
  97. irBusy    equ $C306    ; IR was already busy doing something
  98. irCantPrint    equ $C307    ; IR doesn't accept "Print" requests (vs. "Open")
  99. irDelayedStart    equ $C308    ; IR has to wait a minute to start this thing
  100.  
  101. ; IR file type constants
  102.  
  103. PermInitType    equ $B6
  104. TempInitType    equ $B7
  105. NDAType    equ $B8
  106. CDAType    equ $B9
  107. DriverType    equ $BB
  108. DriverAuxMask    equ $3FC0
  109. DriverAuxType    equ $0100
  110. GenLoadType    equ $BC
  111. FindExtAuxType    equ $0001
  112. FindExtAuxMask    equ $7FFF    ; AND with this to clear unimportant bits
  113. IRPrefsType    equ $5A
  114. IRPrefsAuxType    equ $000A
  115.  
  116. ; other equates
  117.  
  118. acceptRequest    equ $8000
  119. denyRequest    equ $0000
  120.